home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / doors / acs / acs.c next >
Encoding:
C/C++ Source or Header  |  1992-12-26  |  621 b   |  37 lines

  1. #include <exec/exec.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include "acs.h"
  5. #define QUERYBIT 1002
  6. void LastCommand(void);
  7. void end(void);
  8. #define sm sendmessage
  9. main(int argc,char *argv[])
  10. {
  11.     register int i;
  12.     char temp[200];
  13.     Register(argv[1][0]-'0');
  14.     i=0;
  15.     while(i<46) 
  16.     {
  17.        if(AcsStat(i,QUERYBIT))
  18.        {
  19.          sprintf(temp,"[ENABLED %s",AE_ACS[i]);
  20.        }
  21.        else
  22.          sprintf(temp,"[DISABLED%s",AE_ACS[i]);
  23.        sm(temp,1);
  24.        i++;
  25.     }
  26.     ShutDown();
  27.     end();
  28.  
  29. }
  30.  
  31. void LastCommand(void)
  32. {
  33. }
  34. void end(void)
  35. {
  36.   exit(0);
  37. }